package com.j.lemon.learn.basic;

/**
 * @Author lijunjun
 * @Date 2019-02-01 16:36
 * @Description
 */
public class Xx {
    public static void main(String[] args) {
        for (int i = 5; i > 0; i--) {
            for (int j = 0; j < i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }

        for (int i = 0; i < 5; i++) {
            for (int j = 0; j <= i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }

        for(int o = 0;o<10;o++){
            for (int i = 5; i > 0; i--) {
                for (int k = 0; k < 5 - i; k++) {
                    System.out.print(" ");
                }
                for (int j = 0; j < i; j++) {
                    System.out.print("*");
                    System.out.print(" ");
                }
                System.out.println();
            }

            for(int i =0;i<5;i++){
                for(int j =i;j<4;j++){
                    System.out.print(" ");
                }

                for(int k =0;k<=i;k++){
                    System.out.print("*");
                    System.out.print(" ");
                }
                System.out.println();
            }
        }
    }
}
